export const msgMixin = {
    methods: {
        openMsg(type,data) {
            if(type == 'xiaoxi') {
                this.$message({
                    showClose: true,
                    message: data
                })
            }
            if(type == 'success') {
                this.$message({
                    showClose: true,
                    message: data,
                    type
                })
            }
            if(type == 'warning') {
                this.$message({
                    showClose: true,
                    message: data,
                    type
                })
            }
            if(type == 'error') {
                this.$message({
                    showClose: true,
                    message: data,
                    type
                })
            }
        }
    }
}